\doxysection{mat.\+h}
\hypertarget{mat_8h_source}{}\label{mat_8h_source}\index{mesh/include/mat.h@{mesh/include/mat.h}}
\mbox{\hyperlink{mat_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*\ Published\ header\ for\ libmat,\ the\ mat\ library.}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ \ \ Copyright\ 1984-\/2018\ The\ MathWorks,\ Inc.}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ \ \ This\ file\ containes\ types,\ macros,\ and\ declarations\ necessary\ to}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ \ \ interface\ MEX\ files\ with\ the\ current\ version\ of\ MATLAB.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ \ \ }}
\DoxyCodeLine{00006\ \textcolor{comment}{\ \ \ See\ the\ release\ notes\ for\ information\ on\ supporting\ earlier\ versions.\ */}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#ifndef\ mat\_h}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#define\ mat\_h}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ "{}matrix.h"{}}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#if\ defined(TARGET\_API\_VERSION)}}
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#if\ !(TARGET\_API\_VERSION\ ==\ 700\ ||\ TARGET\_API\_VERSION\ ==\ 800)}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#error\ invalid\ TARGET\_VERSION\_API\ definition}}
\DoxyCodeLine{00016\ \textcolor{preprocessor}{\#elif\ defined(MEX\_DOUBLE\_HANDLE)\ \&\&\ TARGET\_API\_VERSION\ !=\ 700}}
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#error\ It\ is\ illegal\ to\ use\ MEX\_DOUBLE\_HANDLE\ with\ linear\ versioning}}
\DoxyCodeLine{00018\ \textcolor{preprocessor}{\#elif\ defined(MX\_COMPAT\_32)\ \&\&\ TARGET\_API\_VERSION\ !=\ 700}}
\DoxyCodeLine{00019\ \textcolor{preprocessor}{\#error\ It\ is\ illegal\ to\ use\ MX\_COMPAT\_32\ with\ linear\ versioning}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#if\ TARGET\_API\_VERSION\ ==\ 800}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \textcolor{preprocessor}{\#define\ matOpen\ matOpen\_800}}
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#define\ matClose\ matClose\_800}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#define\ matGetFp\ matGetFp\_800}}
\DoxyCodeLine{00029\ \textcolor{preprocessor}{\#define\ matPutVariable\ matPutVariable\_800}}
\DoxyCodeLine{00030\ \textcolor{preprocessor}{\#define\ matPutVariableAsGlobal\ matPutVariableAsGlobal\_800}}
\DoxyCodeLine{00031\ \textcolor{preprocessor}{\#define\ matGetVariable\ matGetVariable\_800}}
\DoxyCodeLine{00032\ \textcolor{preprocessor}{\#define\ matGetNextVariable\ matGetNextVariable\_800}}
\DoxyCodeLine{00033\ \textcolor{preprocessor}{\#define\ matGetNextVariableInfo\ matGetNextVariableInfo\_800}}
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ matGetVariableInfo\ matGetVariableInfo\_800}}
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#define\ matDeleteVariable\ matDeleteVariable\_800}}
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#define\ matGetDir\ matGetDir\_800}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#define\ matGetErrno\ matGetErrno\_800}}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ TARGET\_API\_VERSION\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00040\ \textcolor{comment}{/*}}
\DoxyCodeLine{00041\ \textcolor{comment}{\ *\ Copyright\ 1984-\/2018\ The\ MathWorks,\ Inc.}}
\DoxyCodeLine{00042\ \textcolor{comment}{\ *\ All\ Rights\ Reserved.}}
\DoxyCodeLine{00043\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#if\ defined(\_MSC\_VER)}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#\ pragma\ once}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#if\ defined(\_\_GNUC\_\_)\ \&\&\ (\_\_GNUC\_\_\ >\ 3\ ||\ (\_\_GNUC\_\_\ ==\ 3\ \&\&\ \_\_GNUC\_MINOR\_\_\ >\ 3))}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#\ pragma\ once}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{preprocessor}{\#ifdef\ mat\_core\_api\_h}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#error\ the\ published\ and\ developer\ mat\ APIs\ cannot\ be\ combined}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#ifndef\ mat\_published\_c\_api\_h}}
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#define\ mat\_published\_c\_api\_h}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#ifndef\ EXTERN\_C}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#\ \ ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00061\ \textcolor{preprocessor}{\#\ \ \ \ define\ EXTERN\_C\ extern\ "{}C"{}}}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#\ \ else}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#\ \ \ \ define\ EXTERN\_C\ extern}}
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#\ \ endif}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#ifndef\ LIBMAT\_API}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#\ \ define\ LIBMAT\_API\ }}
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ \textcolor{preprocessor}{\#include\ <stdio.h>}\ \ \textcolor{comment}{/*\ for\ FILE\ */}}
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#include\ "{}matrix.h"{}}\ \textcolor{comment}{/*\ for\ mxArray\ */}}
\DoxyCodeLine{00074\ }
\DoxyCodeLine{00081\ \textcolor{comment}{/*\ incomplete\ typedef\ for\ MATFile\ */}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00083\ \textcolor{keyword}{class\ }MATFile;}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00085\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }MatFile\_tag\ MATFile;}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#ifndef\ LIBMAT\_API\_OFFERS\_ERROR\_ENUMS}}
\DoxyCodeLine{00089\ \textcolor{keyword}{typedef}\ \textcolor{keywordtype}{int}\ matError;}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00092\ \textcolor{comment}{/*\ }}
\DoxyCodeLine{00093\ \textcolor{comment}{\ *\ Open\ a\ MAT-\/file\ "{}filename"{}\ using\ mode\ "{}mode"{}.\ \ Return}}
\DoxyCodeLine{00094\ \textcolor{comment}{\ *\ a\ pointer\ to\ a\ MATFile\ for\ use\ with\ other\ MAT\ API\ functions.}}
\DoxyCodeLine{00095\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00096\ \textcolor{comment}{\ *\ Current\ valid\ entries\ for\ "{}mode"{}\ are}}
\DoxyCodeLine{00097\ \textcolor{comment}{\ *\ "{}r"{}\ \ \ \ ==\ read\ only.}}
\DoxyCodeLine{00098\ \textcolor{comment}{\ *\ "{}w"{}\ \ \ \ ==\ write\ only\ (deletes\ any\ existing\ file\ with\ name\ <filename>).}}
\DoxyCodeLine{00099\ \textcolor{comment}{\ *\ "{}w4"{}\ \ \ ==\ as\ "{}w"{},\ but\ create\ a\ MATLAB\ 4.0\ MAT-\/file.}}
\DoxyCodeLine{00100\ \textcolor{comment}{\ *\ "{}w7.3"{}\ ==\ as\ "{}w"{},\ but\ create\ a\ MATLAB\ 7.3\ MAT-\/file.}}
\DoxyCodeLine{00101\ \textcolor{comment}{\ *\ "{}u"{}\ \ \ \ ==\ update.\ \ Read\ and\ write\ allowed,\ existing\ file\ is\ not\ deleted.}}
\DoxyCodeLine{00102\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00103\ \textcolor{comment}{\ *\ Return\ NULL\ if\ an\ error\ occurs.}}
\DoxyCodeLine{00104\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00105\ EXTERN\_C\ LIBMAT\_API\ MATFile*\ matOpen(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *filename,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ mode);}
\DoxyCodeLine{00106\ }
\DoxyCodeLine{00107\ }
\DoxyCodeLine{00108\ \textcolor{comment}{/*}}
\DoxyCodeLine{00109\ \textcolor{comment}{\ *\ Close\ a\ MAT-\/file\ opened\ with\ matOpen.}}
\DoxyCodeLine{00110\ \textcolor{comment}{\ *\ The\ pointer-\/to-\/MATfile\ argument\ is\ invalid,\ once\ matClose\ returns.}}
\DoxyCodeLine{00111\ \textcolor{comment}{\ *\ Return\ zero\ for\ success,\ EOF\ on\ error.}}
\DoxyCodeLine{00112\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00113\ EXTERN\_C\ LIBMAT\_API\ matError\ matClose(MATFile\ *pMF);}
\DoxyCodeLine{00114\ }
\DoxyCodeLine{00115\ \textcolor{comment}{/*}}
\DoxyCodeLine{00116\ \textcolor{comment}{\ *\ Return\ zero\ if\ MATFile\ is\ successfully\ openedno\ error,\ nonzero\ value\ otherwise.}}
\DoxyCodeLine{00117\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00118\ EXTERN\_C\ LIBMAT\_API\ matError\ matGetErrno(MATFile\ *pMF);}
\DoxyCodeLine{00119\ }
\DoxyCodeLine{00120\ }
\DoxyCodeLine{00121\ \textcolor{comment}{/*}}
\DoxyCodeLine{00122\ \textcolor{comment}{\ *\ Return\ the\ ANSI\ C\ FILE\ pointer\ obtained\ when\ the\ MAT-\/file\ was\ opened.}}
\DoxyCodeLine{00123\ \textcolor{comment}{\ *\ Warning:\ the\ FILE\ pointer\ may\ be\ NULL\ in\ the\ case\ of\ a\ MAT\ file\ format}}
\DoxyCodeLine{00124\ \textcolor{comment}{\ *\ that\ does\ not\ allow\ access\ to\ the\ raw\ file\ pointer.}}
\DoxyCodeLine{00125\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00126\ EXTERN\_C\ LIBMAT\_API\ FILE\ *\ matGetFp(MATFile\ *pMF);}
\DoxyCodeLine{00127\ }
\DoxyCodeLine{00128\ }
\DoxyCodeLine{00129\ \textcolor{comment}{/*}}
\DoxyCodeLine{00130\ \textcolor{comment}{\ *\ Write\ array\ value\ with\ the\ specified\ name\ to\ the\ MAT-\/file,\ deleting\ any\ }}
\DoxyCodeLine{00131\ \textcolor{comment}{\ *\ previously\ existing\ variable\ with\ that\ name\ in\ the\ MAT-\/file.}}
\DoxyCodeLine{00132\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00133\ \textcolor{comment}{\ *\ Return\ zero\ for\ success,\ nonzero\ for\ error.}}
\DoxyCodeLine{00134\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00135\ EXTERN\_C\ LIBMAT\_API\ matError\ matPutVariable(MATFile\ *\ pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ name,\ \textcolor{keyword}{const}\ mxArray\ *\ pA);}
\DoxyCodeLine{00136\ }
\DoxyCodeLine{00137\ }
\DoxyCodeLine{00138\ \textcolor{comment}{/*}}
\DoxyCodeLine{00139\ \textcolor{comment}{\ *\ Write\ array\ value\ with\ the\ specified\ name\ to\ the\ MAT-\/file\ pMF,\ deleting\ any\ }}
\DoxyCodeLine{00140\ \textcolor{comment}{\ *\ previously\ existing\ variable\ in\ the\ MAT-\/file\ with\ the\ same\ name.}}
\DoxyCodeLine{00141\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00142\ \textcolor{comment}{\ *\ The\ variable\ will\ be\ written\ such\ that\ when\ the\ MATLAB\ LOAD\ command\ }}
\DoxyCodeLine{00143\ \textcolor{comment}{\ *\ loads\ the\ variable,\ it\ will\ automatically\ place\ it\ in\ the\ }}
\DoxyCodeLine{00144\ \textcolor{comment}{\ *\ global\ workspace\ and\ establish\ a\ link\ to\ it\ in\ the\ local}}
\DoxyCodeLine{00145\ \textcolor{comment}{\ *\ workspace\ (as\ if\ the\ command\ "{}global\ <varname>"{}\ had\ been}}
\DoxyCodeLine{00146\ \textcolor{comment}{\ *\ issued\ after\ the\ variable\ was\ loaded.)}}
\DoxyCodeLine{00147\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00148\ \textcolor{comment}{\ *\ Return\ zero\ for\ success,\ nonzero\ for\ error.}}
\DoxyCodeLine{00149\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00150\ EXTERN\_C\ LIBMAT\_API\ matError\ matPutVariableAsGlobal(MATFile\ *\ pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ name,\ \textcolor{keyword}{const}\ mxArray\ *\ pA);}
\DoxyCodeLine{00151\ }
\DoxyCodeLine{00152\ }
\DoxyCodeLine{00153\ \textcolor{comment}{/*}}
\DoxyCodeLine{00154\ \textcolor{comment}{\ *\ Read\ the\ array\ value\ for\ the\ specified\ variable\ name\ from\ a\ MAT-\/file.}}
\DoxyCodeLine{00155\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00156\ \textcolor{comment}{\ *\ Return\ NULL\ if\ an\ error\ occurs.}}
\DoxyCodeLine{00157\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00158\ EXTERN\_C\ LIBMAT\_API\ mxArray\ *\ matGetVariable(MATFile\ *\ pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ name);}
\DoxyCodeLine{00159\ }
\DoxyCodeLine{00160\ }
\DoxyCodeLine{00161\ \textcolor{comment}{/*\ }}
\DoxyCodeLine{00162\ \textcolor{comment}{\ *\ Read\ the\ next\ array\ value\ from\ the\ current\ file\ location\ of\ the\ MAT-\/file}}
\DoxyCodeLine{00163\ \textcolor{comment}{\ *\ pMF.\ \ This\ function\ should\ only\ be\ used\ in\ conjunction\ with\ }}
\DoxyCodeLine{00164\ \textcolor{comment}{\ *\ matOpen\ and\ matClose.\ \ Passing\ pMF\ to\ any\ other\ API\ functions}}
\DoxyCodeLine{00165\ \textcolor{comment}{\ *\ will\ cause\ matGetNextVariable()\ to\ work\ incorrectly.}}
\DoxyCodeLine{00166\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00167\ \textcolor{comment}{\ *\ Return\ NULL\ if\ an\ error\ occurs.}}
\DoxyCodeLine{00168\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00169\ EXTERN\_C\ LIBMAT\_API\ mxArray\ *\ matGetNextVariable(MATFile\ *pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ **nameptr);}
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00171\ }
\DoxyCodeLine{00172\ \textcolor{comment}{/*}}
\DoxyCodeLine{00173\ \textcolor{comment}{\ *\ Read\ the\ array\ header\ of\ the\ next\ array\ value\ in\ a\ MAT-\/file.\ \ }}
\DoxyCodeLine{00174\ \textcolor{comment}{\ *\ This\ function\ should\ only\ be\ used\ in\ conjunction\ with\ }}
\DoxyCodeLine{00175\ \textcolor{comment}{\ *\ matOpen\ and\ matClose.\ \ Passing\ pMF\ to\ any\ other\ API\ functions}}
\DoxyCodeLine{00176\ \textcolor{comment}{\ *\ will\ cause\ matGetNextVariableInfo\ to\ work\ incorrectly.}}
\DoxyCodeLine{00177\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00178\ \textcolor{comment}{\ *\ See\ the\ description\ of\ matGetVariableInfo()\ for\ the\ definition}}
\DoxyCodeLine{00179\ \textcolor{comment}{\ *\ and\ valid\ uses\ of\ an\ array\ header.}}
\DoxyCodeLine{00180\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00181\ \textcolor{comment}{\ *\ Return\ NULL\ if\ an\ error\ occurs.}}
\DoxyCodeLine{00182\ \textcolor{comment}{\ */}\ }
\DoxyCodeLine{00183\ EXTERN\_C\ LIBMAT\_API\ mxArray\ *\ matGetNextVariableInfo(MATFile\ *pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ **nameptr);}
\DoxyCodeLine{00184\ }
\DoxyCodeLine{00185\ }
\DoxyCodeLine{00186\ \textcolor{comment}{/*}}
\DoxyCodeLine{00187\ \textcolor{comment}{\ *\ Read\ the\ array\ header\ for\ the\ variable\ with\ the\ specified\ name\ from\ }}
\DoxyCodeLine{00188\ \textcolor{comment}{\ *\ the\ MAT-\/file.}}
\DoxyCodeLine{00189\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00190\ \textcolor{comment}{\ *\ An\ array\ header\ contains\ all\ the\ same\ information\ as\ an}}
\DoxyCodeLine{00191\ \textcolor{comment}{\ *\ array,\ except\ that\ the\ pr,\ pi,\ ir,\ and\ jc\ data\ structures\ are\ }}
\DoxyCodeLine{00192\ \textcolor{comment}{\ *\ not\ allocated\ for\ non-\/recursive\ data\ types.\ \ That\ is,}}
\DoxyCodeLine{00193\ \textcolor{comment}{\ *\ Cells,\ structures,\ and\ objects\ contain\ pointers\ to\ other}}
\DoxyCodeLine{00194\ \textcolor{comment}{\ *\ array\ headers,\ but\ numeric,\ string,\ and\ sparse\ arrays\ do\ not\ }}
\DoxyCodeLine{00195\ \textcolor{comment}{\ *\ contain\ valid\ data\ in\ their\ pr,\ pi,\ ir,\ or\ jc\ fields.}}
\DoxyCodeLine{00196\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00197\ \textcolor{comment}{\ *\ The\ purpose\ of\ an\ array\ header\ is\ to\ gain\ fast\ access\ to\ }}
\DoxyCodeLine{00198\ \textcolor{comment}{\ *\ information\ about\ an\ array\ without\ reading\ all\ the\ array's}}
\DoxyCodeLine{00199\ \textcolor{comment}{\ *\ actual\ data.\ \ Thus,\ functions\ such\ as\ mxGetM,\ mxGetN,\ and\ mxGetClassID}}
\DoxyCodeLine{00200\ \textcolor{comment}{\ *\ can\ be\ used\ with\ array\ headers,\ but\ mxGetPr,\ mxGetPi,\ mxGetIr,\ mxGetJc,}}
\DoxyCodeLine{00201\ \textcolor{comment}{\ *\ mxSetPr,\ mxSetPi,\ mxSetIr,\ and\ mxSetJc\ cannot.}}
\DoxyCodeLine{00202\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00203\ \textcolor{comment}{\ *\ An\ array\ header\ should\ NEVER\ be\ returned\ to\ MATLAB\ (for\ example\ via\ the}}
\DoxyCodeLine{00204\ \textcolor{comment}{\ *\ MEX\ API),\ or\ any\ other\ non-\/matrix\ access\ API\ function\ that\ expects\ a}}
\DoxyCodeLine{00205\ \textcolor{comment}{\ *\ full\ mxArray\ (examples\ include\ engPutVariable(),\ matPutVariable(),\ and\ }}
\DoxyCodeLine{00206\ \textcolor{comment}{\ *\ mexPutVariable()).}}
\DoxyCodeLine{00207\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00208\ \textcolor{comment}{\ *\ Return\ NULL\ if\ an\ error\ occurs.}}
\DoxyCodeLine{00209\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00210\ EXTERN\_C\ LIBMAT\_API\ mxArray\ *\ matGetVariableInfo(MATFile\ *pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *\ name);}
\DoxyCodeLine{00211\ }
\DoxyCodeLine{00212\ }
\DoxyCodeLine{00213\ \textcolor{comment}{/*}}
\DoxyCodeLine{00214\ \textcolor{comment}{\ *\ Remove\ a\ variable\ with\ with\ the\ specified\ name\ from\ the\ MAT-\/file\ pMF.}}
\DoxyCodeLine{00215\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00216\ \textcolor{comment}{\ *\ Return\ zero\ on\ success,\ non-\/zero\ on\ error.}}
\DoxyCodeLine{00217\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00218\ EXTERN\_C\ LIBMAT\_API\ matError\ matDeleteVariable(MATFile\ *pMF,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name);}
\DoxyCodeLine{00219\ }
\DoxyCodeLine{00220\ }
\DoxyCodeLine{00221\ \textcolor{comment}{/*\ }}
\DoxyCodeLine{00222\ \textcolor{comment}{\ *\ Get\ a\ list\ of\ the\ names\ of\ the\ arrays\ in\ a\ MAT-\/file.}}
\DoxyCodeLine{00223\ \textcolor{comment}{\ *\ The\ array\ of\ strings\ returned\ by\ this\ function\ contains\ "{}num"{}}}
\DoxyCodeLine{00224\ \textcolor{comment}{\ *\ entries.\ \ It\ is\ allocated\ with\ one\ call\ to\ mxCalloc,\ and\ so\ }}
\DoxyCodeLine{00225\ \textcolor{comment}{\ *\ can\ (must)\ be\ freed\ with\ one\ call\ to\ mxFree.}}
\DoxyCodeLine{00226\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00227\ \textcolor{comment}{\ *\ If\ there\ are\ no\ arrays\ in\ the\ MAT-\/file,\ return\ value\ }}
\DoxyCodeLine{00228\ \textcolor{comment}{\ *\ is\ NULL\ and\ num\ is\ set\ to\ zero.\ \ If\ an\ error\ occurs,}}
\DoxyCodeLine{00229\ \textcolor{comment}{\ *\ return\ value\ is\ NULL\ and\ num\ is\ set\ to\ a\ negative\ number.}}
\DoxyCodeLine{00230\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00231\ EXTERN\_C\ LIBMAT\_API\ \textcolor{keywordtype}{char}\ **\ matGetDir(MATFile\ *\ pMF,\ \textcolor{keywordtype}{int}\ *num);}
\DoxyCodeLine{00232\ }
\DoxyCodeLine{00233\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ mat\_published\_c\_api\_h\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00234\ }
\DoxyCodeLine{00235\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ mat\_h\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
